// async 一个非常有用的模块, 决定学习
// https://github.com/caolan/async#seriestasks-callback
// series(tasks,[callback])
// tasks - An array functions to run, each function is passed a callback(err, result)
// it must call on completion with an error err (which can be null) and an optional result 

var async = require('async');
var jobs = require('./jobs.js');

// async.series([jobs.fun1, jobs.fun2, jobs.fun3], jobs.done);
// or
async.series(jobs.all, jobs.done);